computed: {
...mapGetters([
'isPlay',
'url',
'id',
'title',
'picUrl',
'autoNext',
'lyric',
'listIndex',
'volume'
])
},
watch: {
isPlay(newValue) {
if (newValue) {
this.play();
} else {
this.pause();
}
},
url(newValue) {
if (newValue) {
this.$nextTick(() => {
this.play();
});
}
}
} 